# Created by: Olivier Duchateau
# $FreeBSD$

PORTNAME=	quiterss
PORTVERSION=	0.15.2
CATEGORIES=	net
MASTER_SITES=	http://quiterss.org/files/${PORTVERSION}/
DISTNAME=	QuiteRSS-${PORTVERSION}-src

MAINTAINER=	olivierd@FreeBSD.org
COMMENT=	Atom/RSS feed reader

LICENSE=	GPLv3

USES=	tar:bzip2 desktop-file-utils qmake
USE_QT4=	gui linguist network sql sql-sqlite3 uic xml webkit \
	qmake_build rcc moc
INSTALLS_ICONS=	yes

QMAKE_ARGS=	QMAKE_LRELEASE=${LOCALBASE}/bin/lrelease-qt4

OPTIONS_DEFINE=	PHONON
OPTIONS_DEFAULT=	PHONON
PHONON_DESC=	KDE multimedia framework

.include <bsd.port.options.mk> 

.if ${PORT_OPTIONS:MPHONON}
USE_QT4+=	phonon
.else
QMAKE_ARGS+=	DISABLE_PHONON=1
.endif

post-patch:
# No debug
	${REINPLACE_CMD} -e 's|debug_and_release|release|' \
		${WRKSRC}/QuiteRSS.pro

.include <bsd.port.mk>
